<div class="block">
	<div class="block-title">付款信息填写</div>
	<div class="block-body">
		<?php 
		$form=$this->beginWidget('CActiveForm', array(
		'id'=>'payment-form',
		'enableAjaxValidation'=>false,
		'action' => $actionUrl
		));
		?>
		
		<table>
			<tr>
				<td width="120">加盟账户</td>
				<td>
					<?php echo $owner->loginid ?>
					<input type="hidden" name="Payment[loginid]" value="<?php echo $owner->loginid; ?>" />
				</td>
				<td></td>
			</tr>
			<tr>
				<td>网址</td>
				<td>
					<?php echo $owner->site ?>
					<!-- <input type="hidden" name="Payment[site]" value="<?php echo $owner->loginid; ?>" /> -->
				</td>
				<td></td>
			</tr>
			<tr>
				<td>付款日期</td>
				<td>
					<?php echo CHtml::dropDownList('year', date('Y'), array(date('Y') => date('Y'), date('Y')-1 => date('Y')-1))?>年
					<?php echo CHtml::dropDownList('month', date('n'), range(0, 12))?>月
					<?php echo CHtml::dropDownList('day', date('j'), range(0, 31))?>日
				</td>
				<td></td>
			</tr>
			<tr>
				<td>付款方式</td>
				<td><?php echo CHtml::dropDownList('Payment[pay_method]', '', Yii::app()->params['paymentMethods'])?></td>
				<td></td>
			</tr>
			<tr>
				<td>付款金额(USD)</td>
				<td><input type="text" name="Payment[amount]" value="<?php echo $amount ?>" /></td>
				<td></td>
			</tr>
			<tr>
				<td>参考号码</td>
				<td><input type="text" name="Payment[pay_ref]" /></td>
				<td></td>
			</tr>
			<tr>
				<td>收款人姓名</td>
				<td><input type="text" name="Payment[payableto]" value="<?php echo $owner->payableto?>" /></td>
				<td></td>
			</tr>
			<tr>
				<td>
					备注说明
					<div style="color:#999">加盟账户可见</div>
				</td>
				<td>
					<textarea cols="25" rows="5" style="font-size:12px" name="Payment[client_note]"><?php echo $remark ?></textarea>
				</td>
				<td></td>
			</tr>
			<tr>
				<td>
					我方备注
					<div style="color:#999">仅本公司可见</div>
				</td>
				<td>
					<textarea cols="25" rows="5" style="font-size:12px" name="Payment[note]"></textarea>
				</td>
				<td></td>
			</tr>
			<tr>
				<td>
				</td>
				<td>
					<input type="submit" value="提交付款" /> 
				</td>
				<td></td>
			</tr>
		</table>
		<?php $this->endWidget(); ?>
	</div>
</div>